<template>
	<div>
		<div class="con">
		  <div class="title">{{obj.quesion}}</div>
		  <div class="detail" v-html="obj.content"></div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				obj:'',
				id:'',
				url:this.$store.state.url,//接收路由过来的图片地址前缀
			};
		},
		methods: {
			detail() {
				var that = this;
				that.axios({
					method:'GET',
					url:that.url+'home/helpContent',
					params:{
						id:that.id
					}
				}).then((res)=>{
					if(res.data.errcode==0||res.data.errcode=='0'){
						that.obj = res.data.data;
					}
				})
			}
		},
		mounted(){
			this.sdk.getJSSDK('','',this.$store.state.url);	
			var that = this;
			that.id = that.$route.query.id;
			that.detail();
		}
	}
</script>

<style>
.con{
	width: 6.9rem;
	margin: auto;
}
.title{
	margin-top: .3rem;
	color: #333;
	font-weight: 600;
	padding-bottom: .3rem;
	border-bottom: 0.01rem solid #EDEDED;
	font-size: .3rem;
}
.detail{
	margin-top: .3rem;
	font-size: .26rem !important;
	color: #333;
}
.detail img{
	width: 100%;
	height: 100%;
}
</style>
